import { createWebHistory, createRouter } from "vue-router";
import Datalist from "../components/datalist.vue";
import notelist from "../components/notelist.vue"
import commentList from "../components/comment.vue"
import keywordMeaningList from "../components/keyword.vue"
import PageMonitor from '../components/PageMonitor.vue';
import Login from '../components/LoginRegister.vue';
import contentExtract from '../components/ContentExtract.vue';
import KeywordUpload from '../components/KeywordUpload.vue';
import PdfViewer from '../components/PdfViewer.vue';


const routes = [

  {
    path: "/data",
    name: "data",
    component: Datalist,
  },
  {
    path: "/sites",
    name: "sites",
    component: PageMonitor,
  },
  {
    path: "/notelist",
    name: "notelist",
    component: notelist,
  },
  {
    path: "/keywordMeaningList",
    name: "keywordMeaningList",
    component: keywordMeaningList,
  },
  {
    path: "/keywordUpload",
    name: "keywordUpload",
    component: KeywordUpload,
  },
  {
    path: "/pdfViewer",
    name: "pdfViewer",
    component: PdfViewer,
  },
  {
    path: "/login",
    name: "login",
    component: Login,
  },
  {
    path: "/commentList/:noteId",
    name: "commentList",
    component: commentList,
  },
  {
    path: "/contentExtract",
    name: "contentExtract",
    component: contentExtract,
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;